#region head comment
/*
Code generate by YhdSdkTool.
email:starpeng@vip.qq.com
2013-01-21 23:00:57:158 +08:00
*/
#endregion

using System;
using System.Xml.Serialization;
using System.Collections.Generic;

namespace YhdSdk.Domain.Order
{
    /// <summary>
    /// 订单详细信息
    /// </summary>
    [Serializable]
    public class OrderInfo : YhdObject
    {
        /// <summary>
        /// 订单ID
        /// </summary>
        [XmlElement("orderId")]
        public Nullable<Int64> OrderId
        {
            get;
            set;
        }

        /// <summary>
        /// 订单编码
        /// </summary>
        [XmlElement("orderCode")]
        public String OrderCode
        {
            get;
            set;
        }

        /// <summary>
        /// 订单状态:
        ///<para>ORDER_WAIT_PAY：已下单（货款未全收）</para>
        ///<para>ORDER_PAYED：已下单（货款已收）</para>
        ///<para>ORDER_CAN_OUT_OF_WH：可出库</para>
        ///<para>ORDER_TRUNED_TO_DO：可以发货（已送仓库）</para>
        ///<para>ORDER_OUT_OF_WH：已出库（货在途）</para>
        ///<para>ORDER_SENDED_TO_LOGITSIC：已发送物流</para>
        ///<para>ORDER_RECEIVED：货物用户已收到</para>
        ///<para>ORDER_FINISH：订单完成</para>
        ///<para>ORDER_CUSTOM_CALLTO_RETURN：用户要求退货</para>
        ///<para>ORDER_CUSTOM_CALLTO_CHANGE：用户要求换货</para>
        ///<para>ORDER_RETURNED：退货完成</para>
        ///<para>ORDER_CHANGE_FINISHED：换货完成</para>
        ///<para>ORDER_CANCEL：订单取消</para>
        /// </summary>
        [XmlElement("orderStatus")]
        public String OrderStatus
        {
            get;
            set;
        }

        /// <summary>
        /// 订购金额=商品金额+运费-优惠，即为顾客应付款（抵用券属于支付手段）
        /// </summary>
        [XmlElement("orderAmount")]
        public Nullable<Double> OrderAmount
        {
            get;
            set;
        }

        /// <summary>
        /// 产品总额
        /// </summary>
        [XmlElement("productAmount")]
        public Nullable<Double> ProductAmount
        {
            get;
            set;
        }

        /// <summary>
        /// 订单创建日期
        /// </summary>
        [XmlElement("orderCreateTime")]
        public Nullable<DateTime> OrderCreateTime
        {
            get;
            set;
        }

        /// <summary>
        /// 运费
        /// </summary>
        [XmlElement("orderDeliveryFee")]
        public Nullable<Double> OrderDeliveryFee
        {
            get;
            set;
        }

        /// <summary>
        /// 发票需要情况: 0 不需要，1旧版普通，2新版普通，3增值税发票
        /// </summary>
        [XmlElement("orderNeedInvoice")]
        public Nullable<Int32> OrderNeedInvoice
        {
            get;
            set;
        }

        /// <summary>
        /// 收货人姓名
        /// </summary>
        [XmlElement("goodReceiverName")]
        public String GoodReceiverName
        {
            get;
            set;
        }

        /// <summary>
        /// 收货人地址
        /// </summary>
        [XmlElement("goodReceiverAddress")]
        public String GoodReceiverAddress
        {
            get;
            set;
        }

        /// <summary>
        /// 收货人省份
        /// </summary>
        [XmlElement("goodReceiverProvince")]
        public String GoodReceiverProvince
        {
            get;
            set;
        }

        /// <summary>
        /// 收货人城市
        /// </summary>
        [XmlElement("goodReceiverCity")]
        public String GoodReceiverCity
        {
            get;
            set;
        }

        /// <summary>
        /// 收货人地区
        /// </summary>
        [XmlElement("goodReceiverCounty")]
        public String GoodReceiverCounty
        {
            get;
            set;
        }

        /// <summary>
        /// 收货人街道地址
        /// </summary>
        [XmlElement("goodReceiverArea")]
        public String GoodReceiverArea
        {
            get;
            set;
        }

        /// <summary>
        /// 收货人邮编
        /// </summary>
        [XmlElement("goodReceiverPostCode")]
        public String GoodReceiverPostCode
        {
            get;
            set;
        }

        /// <summary>
        /// 收货人电话
        /// </summary>
        [XmlElement("goodReceiverPhone")]
        public String GoodReceiverPhone
        {
            get;
            set;
        }

        /// <summary>
        /// 收货人手机号
        /// </summary>
        [XmlElement("goodReceiverMoblie")]
        public String GoodReceiverMoblie
        {
            get;
            set;
        }

        /// <summary>
        /// 发货时间
        /// </summary>
        [XmlElement("deliveryDate")]
        public Nullable<DateTime> DeliveryDate
        {
            get;
            set;
        }

        /// <summary>
        /// 确认收货时间
        /// </summary>
        [XmlElement("receiveDate")]
        public Nullable<DateTime> ReceiveDate
        {
            get;
            set;
        }

        /// <summary>
        /// 买家留言
        /// </summary>
        [XmlElement("deliveryRemark")]
        public String DeliveryRemark
        {
            get;
            set;
        }

        /// <summary>
        /// 配送商ID
        /// </summary>
        [XmlElement("deliverySupplierId")]
        public Nullable<Int64> DeliverySupplierId
        {
            get;
            set;
        }

        /// <summary>
        /// 卖家备注
        /// </summary>
        [XmlElement("merchantRemark")]
        public String MerchantRemark
        {
            get;
            set;
        }

        /// <summary>
        /// 付款确认时间(实际付款时间)
        /// </summary>
        [XmlElement("orderPaymentConfirmDate")]
        public Nullable<DateTime> OrderPaymentConfirmDate
        {
            get;
            set;
        }

        /// <summary>
        /// 订单支付方式 0:账户支付 1: 网上支付 2:货到付款3 :邮局汇款4
        ///<para>:银行转账 5:pos机 6:万里通 7:分期付款 8:合同账期 9:货到转账 10:货到付支票</para>
        /// </summary>
        [XmlElement("payServiceType")]
        public Nullable<Int32> PayServiceType
        {
            get;
            set;
        }

        /// <summary>
        /// 参加促销活动立减金额
        /// </summary>
        [XmlElement("orderPromotionDiscount")]
        public Nullable<Double> OrderPromotionDiscount
        {
            get;
            set;
        }

        /// <summary>
        /// 配送商送货编号(运单号)
        /// </summary>
        [XmlElement("merchantExpressNbr")]
        public String MerchantExpressNbr
        {
            get;
            set;
        }

        /// <summary>
        /// 更新时间
        /// </summary>
        [XmlElement("updateTime")]
        public Nullable<DateTime> UpdateTime
        {
            get;
            set;
        }

        /// <summary>
        /// 获取销售平台
        /// </summary>
        [XmlElement("siteType")]
        public Nullable<Int32> SiteType
        {
            get;
            set;
        }

        /// <summary>
        /// 优惠券支付金额
        /// </summary>
        [XmlElement("orderCouponDiscount")]
        public Nullable<Double> OrderCouponDiscount
        {
            get;
            set;
        }

    }
}
